package com.spa.infrastructure.mapper;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.spa.domain.entity.Profit;
import com.spa.infrastructure.repository.po.ProfitPO;
import org.mapstruct.Mapper;
import org.mapstruct.MapperConfig;
import org.mapstruct.Named;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.io.IOException;
import java.util.List;

@Mapper
@MapperConfig(unmappedTargetPolicy = ReportingPolicy.WARN)
public interface ProfitMapperStruct {

    ProfitMapperStruct INSTANCE = Mappers.getMapper(ProfitMapperStruct.class);

    Profit po2Entity(ProfitPO po);

    List<Profit> po2EntityList(List<ProfitPO> po);

    ProfitPO entity2Po(Profit entity);

}
